Skip to content

feat(docs-platform): Beta banner#5259

Open
lena-larionova wants to merge 1 commit into
mainfrom
chore/add-beta-banner
Open

feat(docs-platform): Beta banner#5259
lena-larionova wants to merge 1 commit into
mainfrom
chore/add-beta-banner

Conversation

@lena-larionova
Copy link
Copy Markdown
Contributor

@lena-larionova lena-larionova commented May 15, 2026

PM recently manually added banners to beta docs pages because they couldn't see the "beta" badge on those pages. I'm making this into an automated change - if beta:true or tech_preview:true, the banner will appear.

I'm not sure how I feel about this; it feels like overkill, now that I've added these banners. Is there a better way to display the information?

Example preview pages:
https://deploy-preview-5259--kongdeveloper.netlify.app/kongctl/get-started/
https://deploy-preview-5259--kongdeveloper.netlify.app/kongctl/adopt/

@lena-larionova lena-larionova requested a review from a team as a code owner May 15, 2026 22:50
Copilot AI review requested due to automatic review settings May 15, 2026 22:50
@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit 3b34a9c
🔍 Latest deploy log https://app.netlify.com/projects/kongdeveloper/deploys/6a07a3479509f0000933ef6d
😎 Deploy Preview https://deploy-preview-5259--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR automates stage warning banners for beta and tech preview docs pages, replacing manual beta callouts on conditional plugin execution docs.

Changes:

  • Adds a reusable stage banner include.
  • Renders the banner from the shared main layout when beta or tech_preview is set.
  • Removes manual beta warning callouts from two Gateway docs pages.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
app/_includes/banners/stage.html Adds the reusable beta/tech preview warning banner.
app/_includes/layouts/main.html Renders the stage banner in the shared main page layout.
app/gateway/plugins/expressions.md Removes the manual beta warning now intended to be automated.
app/_how-tos/gateway/configure-conditional-plugin-execution.md Removes the manual beta warning now intended to be automated.

Comment on lines +55 to +57
{%- if page.beta == true or page.tech_preview == true -%}
{%- include_cached banners/stage.html beta=page.beta tech_preview=page.tech_preview -%}
{%- endif -%}
Comment on lines +55 to +57
{%- if page.beta == true or page.tech_preview == true -%}
{%- include_cached banners/stage.html beta=page.beta tech_preview=page.tech_preview -%}
{%- endif -%}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine. The beta warning is in the metadata already, so the LLM will have that information. This change is specifically for human eyes that aren't noticing the badge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants